﻿<UserControl x:Class="DocBox"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"  
    xmlns:odc="clr-namespace:Odyssey.Controls;assembly=Odyssey"
    Name="DocBox">
    <DockPanel Name="Docker">
        <DockPanel.ContextMenu>
            <ContextMenu Name="HeaderMenu" Background="White" >
                <odc:RibbonMenuItem Name="SaveMenuItem"  Header="Save" Image="../Images/Document/save.png" ToolTip="Save Document" />
                <odc:RibbonMenuItem Name="SaveAsMenuItem" Header="Save As" ToolTip="Save Document As" />
                <Separator/>
                <odc:RibbonMenuItem Name="CloseMenuItem" Header="Close" Image="../Images/Document/close.png" ToolTip="Close Document" />
                <odc:RibbonMenuItem Visibility="Collapsed" Name="CloseAllButThis" Header="Close All But This" ToolTip="Close All Documents But This One" />
            </ContextMenu>
        </DockPanel.ContextMenu>
        <Image Name="FileTypeImage" Source="../Images/Tab/rtf.png" Width="16" Height="16" />
        <Label Name="TabTitle" Margin="0,-4,0,-4" Content="New Document"  HorizontalAlignment="Left" HorizontalContentAlignment="Center" MinWidth="91" MaxWidth="91">
            <Label.Effect>
                <DropShadowEffect ShadowDepth="0" Color="White" />
            </Label.Effect>
        </Label>
        <Separator/>
        <Button Background="Transparent" ToolTip="Close Document"  Name="CloseButton" Width="20" Height="20" HorizontalAlignment="Right" DockPanel.Dock="Right">
            <Button.Effect>
                <DropShadowEffect ShadowDepth="0" Color="White" />
            </Button.Effect>
            <Button.BorderBrush>
                <SolidColorBrush Color="Transparent" />
            </Button.BorderBrush>
            <Button.BorderThickness>
                <Thickness Bottom="0" Left="0" Right="0" Top="0" />
            </Button.BorderThickness>
            <Image Source="../Images/Tab/close.png"/>
        </Button>
    </DockPanel>
</UserControl>